package com.putao.tinytime.bean;


import com.putao.tinytime.base.BaseItem;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * @author jidongdong
 */
public class CollageConfigInfo extends BaseItem {
    public String version;
    public ArrayList<SampleItemInfo> data;

    /**
     * 单个模板分类信息
     *
     * @author jidongdong
     */
    public class SampleItemInfo implements Serializable {
        private static final long serialVersionUID = -4169682109977772335L;
        public String sample_bg;
        public String sample_name;
        public String sample_thumbnail;
        public ArrayList<SenceItemInfo> scenceElements;
    }

    public class SenceItemInfo implements Serializable {
        public String background;
        public ArrayList<PhotoItemInfo> photoElements;
    }

    public class PhotoItemInfo implements Serializable
    {
        public float left;
        public float top;
        public String background;
        public String foreground;
        public ArrayList<PhotoAreaPoint> photo_area;
    }

    /**
     * 模板中单个图片对应的坐标信息
     *
     * @author jidongdong
     */
    public class PhotoAreaPoint implements Serializable {
        private static final long serialVersionUID = 4536490201716185429L;
        public float point_x;
        public float point_y;
    }
}
